import React, { Component } from 'react';

class Index extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }

  componentDidMount() {
    // console.log(this.props.match)
    let id = this.props.match.params.id

    this.setState({
      id
    })
  }

  render() {
    return (
      <div>
        <h2>List Page</h2>
        <p>{this.state.id}</p>
      </div>
    );
  }
}

export default Index
